<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<link rel="stylesheet" type="text/css" href="system/css/main.css" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>${car.brand} - ${car.model}</title>
</head>
<body>
	<div id="header">
		<div id="user">
			Hello
			<c:if test="${empty username }">
			Guest
			<a href="login.jsp">Login</a>
			</c:if>
			<c:if test="${!empty username }">
				<a href="user.jsp">${username.username}</a>
				<a href="/PRIS/logoutServlet">Logout</a>
			</c:if>
		</div>
		<div id="logo">
			<a href="home.jsp"><img src="system/images/logo.jpg"></a>
		</div>
		<div id="navigation">
			<ul>
				<li><a href="home.jsp">Home</a></li>
				<li><a href="ads.jsp">Cars</a></li>
				<c:if test="${!empty username }">
					<li><a href="addAd.jsp">Add new Car</a></li>
				</c:if>
				<li><a href="search.jsp">Search</a></li>
				<li><a href="last24hAds.jsp">Last 24h ads</a></li>
				<li><a href="mostUsed.jsp">Most used</a></li>
			</ul>
		</div>
	</div>

	<div id="content">
		<div>Car Page</div>
		<div id="personal">
			<div>Brand: ${car.brand}</div>
			<div>Model: ${car.model}</div>
			<div>Price: ${car.price}</div>
			<div>Fuel type: ${car.fuelType}</div>
			<div>Year: ${car.year}</div>
			<div>Power: ${car.power}</div>
			<div>Kilometers: ${car.kilometers}</div>
			<div>Contact: <a href="mailto:${car.prisTeam1UserAccount.mail}">${car.prisTeam1UserAccount.mail}</a></div>
		</div>
		<div id="comments">
			<%@ include file="comments.jsp"%>
		</div>
	</div>
	<div id="footer">
		<div id="copyright">Copyright © 2013</div>
	</div>
</body>
</html>